package com.peaw.util;

import com.peaw.exception.ValidationException;

/**
 * <pre>
 * <b></b>
 *
 * </pre>
 * 
 * @author MrLiberte
 * @version 1.0.0 [2016年4月14日]
 */
public final class ValidateUtil {
	
	public static void isTrue(boolean expression,String message) throws ValidationException {
		if (!expression) {
			throw new ValidationException(message);
		}
	}
	
	
	public static void isTrue(boolean expression) throws ValidationException {
		isTrue(expression, "validation.err.null");
	}
	
}
